package com.bookmall.dao;

import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T> {
	boolean insert(T t) throws SQLException;
	boolean update(T t) throws SQLException;
	boolean delete(int id) throws SQLException;
	T selectById(int id) throws SQLException;
	List<T> selectByPage(int page,int pageSize) throws SQLException;
}
